import os
from importlib.machinery import SourceFileLoader
from setuptools import setup
from setuptools import Extension

dirname = os.path.dirname(__file__)
path_version = os.path.join(dirname, 'vaex/server/_version.py')
version = SourceFileLoader('version', path_version).load_module()


name = 'vaex'
author = 'Maarten A. Breddels'
author_email = 'maartenbreddels@gmail.com'
license = 'MIT'
version = version.__version__
url = 'https://www.github.com/maartenbreddels/vaex'
install_requires_server = ['vaex-core~=4.7', 'tornado>4.1', 'cachetools', 'fastapi', 'uvicorn[standard]']

setup(name=name + '-server',
      version=version,
      description='Webserver and client for vaex for a remote dataset',
      long_description="Webserver and client for vaex for a remote dataset",
      long_description_content_type="text/markdown",
      url=url,
      author=author,
      author_email=author_email,
      install_requires=install_requires_server,
      license=license,
      packages=['vaex.server'],
      zip_safe=False,
      package_data={
            'vaex.server': ['index.html']
      }
)
